package com.hczx.caxa.bean;

public class ResultBean {

    String msg;
    String status;

    public static ResultBean buildSuccessResult(){
        ResultBean resultBean = new ResultBean();
        resultBean.setStatus("SUCCESS");
        resultBean.setMsg("");
        return resultBean;
    }

    public static ResultBean buildFailureResult(String msg){
        ResultBean resultBean = new ResultBean();
        resultBean.setStatus("FAILURE");
        resultBean.setMsg(msg);
        return resultBean;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
